package com.zryc.shop.sms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zryc.shop.sms.entity.FlashPromotion;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 限时购表 服务类
 * </p>
 *
 * @author zhaozhao
 * @since 2024-01-18
 */
public interface IFlashPromotionService extends IService<FlashPromotion> {

    /**
     * 分页列表
     *
     * @param keyword
     * @param pageNum
     * @param pageSize
     * @return
     */
    Page<FlashPromotion> list(String keyword, Integer pageNum, Integer pageSize);

    /**
     * 修改秒杀活动状态
     *
     * @param id
     * @param status
     * @return
     */
    Object updateStatus(Long id, Integer status);

    /**
     * 更新秒杀活动
     *
     * @param id
     * @param flashPromotion
     * @return
     */
    Object updateFlash(Long id, FlashPromotion flashPromotion);
}
